-- GENERATED SPELL FOR [Rabid Dire Wolf] --


function spell0_565(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17256,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_565', 597, 1)
end

function spell1_565(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1753,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_565', 0, 1)
end

function spell2_565(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14917,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_565', 0, 1)
end

function spell3_565(pUnit, Event) --@Rabies,n/a--
pUnit:FullCastSpellOnTarget(3150,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_565', 0, 1)
end

function Sorts_565(pUnit, Event)
local choix_sorts_565 = math.random(0, 3)
if choix_sorts_565 == 0 then
pUnit:RegisterEvent('spell0_565', 1, 1)
end
if choix_sorts_565 == 1 then
pUnit:RegisterEvent('spell1_565', 1, 1)
end
if choix_sorts_565 == 2 then
pUnit:RegisterEvent('spell2_565', 1, 1)
end
if choix_sorts_565 == 3 then
pUnit:RegisterEvent('spell3_565', 1, 1)
end
end

function mob565_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_565', math.random(1500, 3000), 1)
end

function mob565_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob565_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob565_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(565, 1, 'mob565_Action')
RegisterUnitEvent(565, 2, 'mob565_Leave')
RegisterUnitEvent(565, 3, 'mob565_Kill')
RegisterUnitEvent(565, 4, 'mob565_Die')
